package com.central.modules.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.central.modules.sys.entity.SysDictTypeEntity;
import com.central.modules.sys.model.AddSysDictTypeRequest;
import com.central.modules.sys.model.SysDictTypeQueryBean;

import java.util.List;

public interface SysDictTypeService extends IService<SysDictTypeEntity> {

    //分页查询
    IPage<SysDictTypeEntity> searchSysDictTypes(SysDictTypeQueryBean queryBean);

    //添加
    boolean addSysDictType(AddSysDictTypeRequest request);

    //修改
    boolean updateSysDictType(Long id, AddSysDictTypeRequest request);

    //删除
    boolean removeSysDictType(Long id);

    SysDictTypeEntity getSysDictTypeByType(String dictType);

    List<SysDictTypeEntity> findAll();
}
